package com.polukeuro.app.client.events;

import com.google.gwt.event.shared.GwtEvent;

public class ResponseEvent  extends GwtEvent<RequestHandler> {

	private static Type<RequestHandler> TYPE = new Type<RequestHandler>();
	
	private final String json;

	public ResponseEvent(String json) {
		super();
		this.json = json;
	}

	public static Type<RequestHandler> getType() {
		return TYPE;
	}
	
	@Override
	protected void dispatch(RequestHandler handler) {
		handler.onResponseEvent(this);
		
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<RequestHandler> getAssociatedType() {
		return TYPE;
	}

	public String getJson() {
		return json;
	}
	

}
